<?php require_once('../Connections/microassur.php'); 

mysql_select_db($database_microassur, $microassur);

function existeChamp($database_microassur, $microassur, $table, $champ, $valeurChamp){

	$query_rs = "SELECT COUNT(*) as nombre FROM $table WHERE $champ = '$valeurChamp'";
	$rs = mysql_query($query_rs, $microassur) or die(mysql_error());
	$row_rs = mysql_fetch_assoc($rs);
	mysql_free_result($rs);
	return $row_rs['nombre'];
}

?>
